<{include file="page/header.htm"}>
<link rel="stylesheet" type="text/css"
    href="/skin/adminhtml/webuploader/webuploader.css">
<div class="page-content">
    <!-- Page Breadcrumb -->
    <div class="page-breadcrumbs">
        <ul class="breadcrumb">
            <li><i class="fa fa-home"></i> <a href="#">系统管理</a></li>
            <li class="active">广告位列表</li>
        </ul>
    </div>
    <!-- /Page Breadcrumb -->

    <!-- Page Header -->
    <div class="page-header position-relative">
        <div class="header-title">
            <h1>广告位列表</h1>
            <small> <i class="fa fa-angle-right"></i> <{if
                $item}>编辑<{else}>添加<{/if}>广告位
            </small>
        </div>
        <!--Header Buttons-->
        <div class="header-buttons">
            <a class="sidebar-toggler" href="#"> <i class="fa fa-arrows-h"></i>
            </a> <a class="refresh" id="refresh-toggler" href=""> <i
                class="glyphicon glyphicon-refresh"></i>
            </a> <a class="fullscreen" id="fullscreen-toggler" href="#"> <i
                class="glyphicon glyphicon-fullscreen"></i>
            </a>
        </div>
        <!--Header Buttons End-->
    </div>
    <!-- /Page Header -->
    <!-- Page Body -->
    <div class="page-body">

        <{include file="page/msg.htm"}>

        <div class="row">
            <div class="col-lg-12 col-sm-12 col-xs-12">
                <div class="widget radius-bordered">
                    <div class="widget-header bg-themeprimary">
                        <span class="widget-caption"><{if
                            $item}>编辑<{else}>添加<{/if}>广告位</span>
                        <div class="widget-buttons">
                            <button type="button" class="btn btn-success"
                                onclick="window.location='<{url path='ad/position'}>';">
                                <i class="fa fa-mail-reply-all"></i>返回
                            </button>
                        </div>
                    </div>
                    <div class="widget-body">

                        <form id="dataForm" method="post" class="form-horizontal"
                            enctype="multipart/form-data"
                            action="<{url path='ad/adpositionedit'}>">
                            <input type="hidden" name="id" value="">
                            <div class="row">
                                <div class="col-sm-12 col-xs-12">
                                    <div class="tabbable">
                                        <div class="tab-content">
                                            <div id="home" class="tab-pane in active">
                                                <div class="row">
                                                    <div class="col-sm-7 col-xs-7">
                                                        <div class="form-group">
                                                            <label class="col-lg-4 control-label">广告位名称<span
                                                                class="red">*</span></label>
                                                            <div class="col-lg-8">
                                                                <input type="text" class="form-control"
                                                                    name="name" id="name" datatype="*1-10"
                                                                    nullmsg="广告位名称不能为空!" errormsg="广告位名称至少1个字符,最多10个字符！" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>



                                            <div class="row" style="margin-top: 20px;">
                                                <div class="col-sm-6 col-xs-6">
                                                    <div class="form-group">
                                                        <div class="col-lg-offset-4 col-lg-8">
                                                            <input class="btn btn-primary" type="submit" value="提交" />
                                                            <button type="button" class="btn btn-warning"
                                                                onclick="window.location='<{url path='ad/position'}>';">返回</button>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>


                                        </div>


                                    </div>

                                </div>
                            </div>

                        </form>

                    </div>
                </div>
            </div>

        </div>

    </div>
    <!-- /Page Body -->
</div>
<{include file="page/footer.htm"}>
<script src="/skin/adminhtml/js/form.js"></script>
<script src="/skin/adminhtml/js/Validform.js"></script>
<script src="/skin/adminhtml/js/tools.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        
        validate('#dataForm');
        
        var form = new Form('dataForm');
        form.init(<{json data=$item }>);
        
    });
</script>